package edu.zut.cs.network.Experiment5;

import java.util.HashSet;
import java.util.Set;
import java.util.Scanner;
import javax.swing.JOptionPane;
public class PrintInt {


    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        Set set = new HashSet();
        for(int i = 0 ; i < 10;i++){
            System.out.println("请输入数字：");
            int num = input.nextInt();
            set.add(num);
        }
        JOptionPane.showMessageDialog(null,"输出结果为：\n"+set,
        "对话框",JOptionPane.INFORMATION_MESSAGE);
    }
}
